/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.floatdialog;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;

public class a {
    public static void a(Context paramContext, BroadcastReceiver paramBroadcastReceiver) {
        if ((paramContext == null) || (paramBroadcastReceiver == null))
            return;
        try {
            IntentFilter localIntentFilter = new IntentFilter();
            localIntentFilter.addAction("com.qihoo.gamecenter.float_sdk_setting_change_broadcast");
            paramContext.registerReceiver(paramBroadcastReceiver, localIntentFilter);
        } catch (Exception localException) {
            localException.printStackTrace();
        }
    }

    public static void b(Context paramContext, BroadcastReceiver paramBroadcastReceiver) {
        if ((paramContext == null) || (paramBroadcastReceiver == null))
            return;
        try {
            paramContext.unregisterReceiver(paramBroadcastReceiver);
        } catch (Exception localException) {
            localException.printStackTrace();
        }
    }
}